<style type="text/css">
	.bx {
		width:100%;
		height:450px;
		float:left;
		}
</style>
<div class="bx">
<?php
	echo "<h2>".$h2_title."</h2>";
	echo ! empty($message) ? '<p class="message">' . $message . '</p>': '';
	


	$flashmessage = $this->session->flashdata('message');
	echo ! empty($flashmessage) ? '<p class="message">' . $flashmessage . '</p>': '';
	
?>
<form action="<?php echo $form_action;?>" method="post">
<p>
	<label>Nama :</label>
	<input  type="hidden" name="user_id" value="<?php
		foreach($send_id->result() as $id) {
		
			echo $id->user_id + 1;
		}
	?>" />
	<input type="text" name="name" class="form_field" size="30" />
	<?php echo form_error('name', '<i class="field_error">', '</i>');?>
</p>
<p>
	<label>email :</label>
	<input type="text" name="email" class="form_field" size="30" />
	<?php echo form_error('email', '<i class="field_error">', '</i>');?>
</p>

<p>
	<label>Dept</label>
	<select name="dept_id">
        	<?php foreach($dept->result() as $dept): ?>
            	<option value="<?php echo $dept->dept_id;?>"><?php echo $dept->dept_name;?></option>
            <?php endforeach; ?>
        </select>
</p>
<p>
	<label>User Right</label>
	<select name="user_right">
			
			<option value="2">Admin</option>
			<option value="3">Internal Auditor</option>
			<option value="4">Sec Consultant</option>
			<option value="5">Dept Pic</option>
        	
        </select>
</p>
<p>
	<label>&nbsp;</label>
	<input type="submit" name="upreg" value="Register" /> &nbsp;&nbsp;<input type="reset" value="Cancel" />
</p>
</form>
</div>